{template "content","header"}
{pc_base::load_sys_class('format')}


<!--遮幕层start-->
<div id="loading">	
	<div style='position:absolute;	cursor1:wait;top:200px;width:auto;height:30px;padding:12px 5px 10px 50px;
background:#fff url(statics/images/my/loading.gif) no-repeat scroll 5px 10px;border:2px solid #ccc;color:#000;margin-left: auto;margin-right: auto';>	
	正在加载，请等待...
</div>	
</div>
<!--遮幕层end-->



<div class="main">
<div id="layout-main" class="easyui-layout main-layout">  
	

	
 <div id="west" data-options="region:'west',title:'',split:false,border:true" style="width:360px;">
	<div id="l1" class="box"  style="border:0px;padding-bottom: 0px;">
   	  <h5 class="title-2">
	  <img style="padding-right:2px;" src="{APP_PATH}statics/easyui/themes/icons/icon-standard/16x16/report.png"  alt=""/>
	       电子期刊
	  <a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=65" class="more">更多>></a></h5>
          {pc:content  action="lists" catid="65" order="inputtime DESC" num="2"} 
		  <ul> {loop $data $key $val}
		  <li class="listnews">
		   <a  href="{$val['url']}">{$val['title']}</a>
		    {if date(time()) -$val['inputtime']<3600*24*7}         
				 <img src="{IMG_PATH}/new.gif"  alt="最近7天之内"/>
              {/if}	
		  </li> 
		 
       {/loop}</ul>
        {/pc}  
		
		    {pc:content  action="lists" catid="77" order="inputtime DESC" num="2"} 
			  <ul> {loop $data $key $val}
			    <li class="listnews">
			       <a  href="{$val['url']}">{$val['title']}</a>
								        {if date(time()) -$val['inputtime']<3600*24*7}
	                   <img src="{IMG_PATH}/new.gif"  alt="最近7天之内"/>	  
{/if}	
			    </li> 
                {/loop}</ul> 
            {/pc}
  <!--     <div class="bk15 hr"></div> -->
	        {pc:content  action="lists" catid="66" order="inputtime DESC" num="2"} 
			  <ul> {loop $data $key $val}
			    <li class="listnews">
			       <a  href="{$val['url']}">{$val['title']}</a>
								        {if date(time()) -$val['inputtime']<3600*24*7}
	                   <img src="{IMG_PATH}/new.gif"  alt="最近7天之内"/>	  
{/if}	
			    </li> 
                {/loop}</ul> 
            {/pc}  
      </div>		
		<div class="bk10"></div> 

		
	<div  id="l2" class="box" style="border:0px;padding-bottom: 0px;">
   	  <h5 class="title-2" style="margin-bottom: 10px;border-top: 1px solid #dce7f3;">
	   <img style="padding-right:2px;" src="{APP_PATH}statics/easyui/themes/icons/icon-standard/16x16/date.png"  alt=""/>食堂供应
			<a href="#" style="float:right;" id="months" class="easyui-splitbutton more" data-options="menu:'#mm1',iconCls:'icon-standard-calendar'">
			   {pc:content  action="lists" catid="64" order="datee DESC" num="1" moreinfo="1"}  
			      {loop $data $key $val}
				      {date('m月d日',strtotime($val['datee']))}（ {format::week(strtotime($val['datee']))}）
				  {/loop}
				{/pc}
			</a>
		 <div id="mm1" style="width:155px;">
			{pc:content  action="lists" catid="64" order="datee DESC" num="9" moreinfo="1"}  
				  {loop $data $key $val} 
					  <div onclick="showfood({strtotime($val['datee'])})"> {date('m月d日',strtotime($val['datee']))}（ {format::week(strtotime($val['datee']))}）</div>	 
			       {/loop}
			{/pc} 
		</div>  
	  </h5>
   
   {pc:content  action="lists" catid="64" order="datee DESC" num="1" moreinfo="1"}  
		  <ul> 		 
		  {loop $data $key $val} 
		  

        <div style="padding-left:10px;">
		<div class="foodt">    <img src="{APP_PATH}statics/easyui/themes/icons/icon-standard/16x16/cup.png"  alt=""/>主食：</div>
		
		<div class="food" id="main">{trim($val['mainfood'])}
	
		
		</div>
		<div class="foodt">     <img src="{APP_PATH}statics/easyui/themes/icons/icon-standard/16x16/emoticon-tongue.png"  alt=""/>副食：</div>
		
	   <div class="food" id="sfood">{trim($val['sfood'])}</div>
	   	<div class="foodt">     <img src="{APP_PATH}statics/easyui/themes/icons/icon-standard/16x16/lightbulb.png"  alt=""/>注意：</div>
		
	   <div class="food" id="nfood">{trim($val['zhuyi'])}</div>

	 <div class="bk10"></div> 
	 	  <div class="bk15 hr"></div>
		  
	
	   
	           
	{pc:content action="lists" catid="68" num="1" order="id DESC" page="$page"}
 
{loop $data $r}
	
	  <a style="float:right" target="_blank" href="{$r[url]}"  class="easyui-linkbutton" data-options="plain:'false'">本周食谱>></a> 
{/loop}
  
     
{/pc}

	   <a id="link" style="float:left" target="_blank" href="{$val['url']}" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:'false'">查看</a> 
	   
	   
	   
  </div>

		  
		  
		 
       {/loop}



	   </ul> {/pc} 


         
      </div>
	
		<div   class="box" style="border:0px;">
   	  <h5 class="title-2" style="margin-bottom: 10px;border-top: 1px solid #dce7f3;">
	   <img style="padding-right:2px;" src="{APP_PATH}statics/easyui/themes/icons/icon-standard/16x16/weather-cloudy.png"  alt=""/>澡堂开放
	  
	   
	        	{pc:content action="lists" catid="71" num="1" order="id DESC" page="$page"}
 
{loop $data $r}
 <span style="font-size:12px;">({$r[title]})</span></h5>
 	  <div style="font-size:12px;padding-left:30px;color: #0657AB;">
	时间：{$r[smallWorkDay]}
	  </div>
	   <div style="font-size:12px;padding-left:30px;color: #0657AB;">
	{$r[bigWorkDay]}
	  </div>


	  
{/loop}
  
     
{/pc}
	  
	  </div>
	
	</div>  
    <div id="center" data-options="region:'center',title:'',border:false" style="padding-left:5px;">
	<div id="righttab" class="easyui-tabs" data-options="fit:true">  
    <div id="fff" title="最新动态" style="padding-left:20px;padding-right:20px;padding-top:10px;padding-bottom:10px;"  data-options="fit:true,iconCls:'icon-standard-new'">

     
 <ul  class="list lh24 f14">
	   {pc:get sql="SELECT * FROM `v9_news` where catid not in(39,68) Order by id DESC " num="16"} 
       {loop $data $r}
        <li class="lll">
        		
        		
        		
        	<a style="" href="{$r[url]}" target="_blank" title="{$r['title']}"{title_style($v[style])}>{str_cut(strip_tags($r[title]),100)}</a>
        	<span style="color:#83939B;font-size: 15px;">({date('m-d',$r[inputtime])}阅{get_views('c-'.$CATEGORYS[$r[catid]][modelid].'-'.$r['id'])}次)</span>
		
											 {if date(time()) -$r['inputtime']<3600*24*3}
<img class="newtag" src="{IMG_PATH}/new.gif"  alt="最近3天之内"/>

{/if}
		{pc:get sql="SELECT * FROM `v9_category`  WHERE arrparentid LIKE 0 AND find_in_set($r[catid], arrchildid)"} 
       {loop $data $ra}
	   <a  href="{$ra[url]}" target="_blank">[{$ra[catname]}]   </a>  
	 
        {/loop}

{/pc} 
		
	
        </li>
          {/loop}

{/pc} 

  </ul>




 <div style="position:absolute;bottom:5px;right:5px;">
	<a style="float:right;padding-right:10px;" href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=69" class="easyui-linkbutton" data-options="iconCls:'icon-standard-control-fastforward-blue',plain:'true'" target="_blank">更多</a>
</div> 
    </div>  

	
	
	     {loop subcat(0,0,0,$siteid) $r}
           {php if($r['catid']==61|| $r['catid']==7 || $r['catid']==67 ) continue;}
        {php $num++}
   	<!--这是通过循环得到的tab组 ---start-->
      <div title="{$r[catname]}" data-options="" style="overflow:auto;padding:20px;">  
	
         {pc:content  action="lists" catid="$r[catid]" order="updatetime DESC" thumb="1" num="1" return="info"}

             {loop $info $v}
             	<p>
				
				<a href="{$v[url]}" target="_blank">
				
             		<img src="{thumb(str_replace('http://172.16.6.66:8080/syb/statics/js/ueditor/dialogs/attachment/fileTypeImages/',"http://172.16.6.66:8080/syb/statics/js/ueditor/dialogs/attachment/fileTypeImages/f",$v[thumb]),90,0)}" width="90" height="60"/>
					</a>
                    <strong><a href="{$v['url']}" target="_blank" title="{$v['title']}"{title_style($v[style])}>{str_cut($v['title'],100)}</a></strong><br /><p style="text-indent: 2em;padding-top:4px;">{str_cut($v['description'],150)}</p>
                </p>
              {/loop}
                 <div class="bk15 hr"></div>
              {/pc}                
             
                {pc:content action="lists" catid="$r[catid]" num="5" order="id DESC" return="info"}

                <ul class="list lh24 f14">
                {loop $info $v}
				
                	<li class="rtt">

					
					<a href="{$v['url']}" target="_blank" title="{$v['title']}"{title_style($v[style])}>{str_cut($v['title'],100)}</a><span style="color:#83939B;font-size: 15px;">({date('m-d',$v[inputtime])}  阅{get_views('c-'.$CATEGORYS[$r[catid]][modelid].'-'.$v['id'])}次)</span>
									 {if date(time()) -$v['inputtime']<3600*24*3}
<img class="newtag" src="{IMG_PATH}/new.gif"  alt="最近3天之内"/>

{/if}
					</li>
					
					
					
                {/loop}
                </ul>
 <div style="position:absolute;bottom:5px;right:5px;">
	<a style="float:right;padding-right:10px;" href="{APP_PATH}index.php?m=content&c=index&a=lists&catid={$r[catid]}" class="easyui-linkbutton" data-options="iconCls:'icon-standard-control-fastforward-blue',plain:'true'" target="_blank">更多</a>
</div> 

                {/pc}
				
				
				
    </div>  

		{/loop}
	<!--这是通过循环得到的tab组 ---end-->
	
	  <div title="资料下载" data-options="" style="overflow:auto;padding:20px;">  
	<li class="cat_title" style="margin: 5px 0 15px 0px;">
	 	<span class="scroll_top">○</span>
	 	<a class="cat_title_link">图片资料</a>
	</li>

	 
	 {pc:content action="lists" catid="38" num="6" order="id DESC"}
{loop $data $r}
<!--<a href="{$r[url]}" target="_blank"{title_style($r[style])}>{$r[title]}</a> <span>{date('Y-m-d H:i:s',$r[inputtime])}</span>
{if $n%10 ==0}<li class="bk20 hr"></li>{/if}-->

	
<li class="rtt">
					
					<a href="{$r['url']}" target="_blank" title="{$r['title']}"{title_style($r[style])}>{str_cut($r['title'],100)}</a><!--({date('m-d',$r[inputtime])}  阅：{get_views('c-'.$CATEGORYS[$r[catid]][modelid].'-'.$r['id'])})-->
									 {if date(time()) -$r['inputtime']<3600*24*3}
<img src="{IMG_PATH}/new.gif"  alt="最近3天之内"/>

{/if}
					</li>


{/loop}
{$pages}
{/pc}
 
	 
	 
 	<li class="cat_title" style="margin: 5px 0 15px 0px;">
	 	<span class="scroll_top">○</span>
	 	<a class="cat_title_link">表格资料</a>
	 </li>
	 
	 {pc:content action="lists" catid="37" num="6" order="id DESC"}
{loop $data $r}
<!--<a href="{$r[url]}" target="_blank"{title_style($r[style])}>{$r[title]}</a> <span>{date('Y-m-d H:i:s',$r[inputtime])}</span>
{if $n%10 ==0}<li class="bk20 hr"></li>{/if}-->

	<li class="rtt">

					
					<a href="{$r['url']}" target="_blank" title="{$r['title']}"{title_style($r[style])}>{str_cut($r['title'],100)}</a><!--({date('m-d',$r[inputtime])}  阅：{get_views('c-'.$CATEGORYS[$r[catid]][modelid].'-'.$r['id'])})-->
									 {if date(time()) -$r['inputtime']<3600*24*3}
<img src="{IMG_PATH}/new.gif"  alt="最近3天之内"/>

{/if}
					</li>


{/loop}
{$pages}
{/pc}

	 
	<li class="cat_title" style="margin: 5px 0 15px 0px;">
	 	<span class="scroll_top">○</span>
	 	<a class="cat_title_link">常用软件</a>
	 </li>
	 {pc:content action="lists" catid="36" num="6" order="id DESC"}
{loop $data $r}
<!--<a href="{$r[url]}" target="_blank"{title_style($r[style])}>{$r[title]}</a> <span>{date('Y-m-d H:i:s',$r[inputtime])}</span>
{if $n%10 ==0}<li class="bk20 hr"></li>{/if}-->

	<li class="rtt">

					
					<a href="{$r['url']}" target="_blank" title="{$r['title']}"{title_style($r[style])}>{str_cut($r['title'],100)}</a><!--({date('m-d',$r[inputtime])}  阅：{get_views('c-'.$CATEGORYS[$r[catid]][modelid].'-'.$r['id'])})-->
									 {if date(time()) -$r['inputtime']<3600*24*3}
<img src="{IMG_PATH}/new.gif"  alt="最近3天之内"/>

{/if}
					</li>


{/loop}
{$pages}
{/pc}

	 <div style="position:absolute;bottom:5px;right:5px;">
	<a style="float:right;padding-right:10px;" href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=7" class="easyui-linkbutton" data-options="iconCls:'icon-standard-control-fastforward-blue',plain:'true'" target="_blank">更多</a>
</div> 
      </div>
</div> 
	
	</div>  
	 
</div> 
 
    <div class="bk10"></div> 
 
	 <div id="pic" class="box" style="margin-bottom: 0px;padding-bottom:10px;">
<h5 style="margin-bottom: 0px;">
	<img src="{APP_PATH}statics/easyui/themes/icons/icon-standard/16x16/photos.png"  alt=""/>
	图片新闻
	<!--  <a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=67" class="more">
	  
	  更多>></a> -->
	</h5>
<div class=blk_29>
<div class=LeftBotton id=LeftArr></div>
<div class=Cont id=ISL_Cont_1><!-- 图片列表 begin -->


	  	 {pc:content  action="lists" catid="67" order="id DESC" num="14" moreinfo="1"} 


             {loop $data $key $r}
			 <div class=box style="border:0px;padding-bottom:0px;">
			   <A class=imgBorder href="{$r[url]}" target=_blank>
			   <IMG src="{thumb($r[thumb],110,0)}" title="{$r[title]}" style="width:124px;height:84px;">
</A>
<p class="list" style="font-size:13px">{str_cut($r[title],20)}</p>
               </div>
        
                {/loop}
            

            {/pc}




<!-- 图片列表 end --></div>

<div class=RightBotton id=RightArr></div></div>


</div>

    <div class="bk10"></div> 
    
  
     
    

 
	<div class="box blogroll ylink">
    	<h5><a href="{APP_PATH}index.php?m=link&siteid={$siteid}" hidefocus="true" class="rt">更多>></a>友情链接<a href="{APP_PATH}index.php?m=link&c=index&a=register&siteid={$siteid}" class="red">申请链接</a></h5>
        <div class="bk10"></div>
	<ul class="colli imgul">
        {pc:link  action="type_list" siteid="$siteid" linktype="1" order="listorder DESC" num="9" return="pic_link"}
        {loop $pic_link $v}
        <li><a href="{$v['url']}" title="{$v['name']}" target="_blank"><img src="{$v[logo]}" width="88" height="31" /></a></li>
        {/loop}
        {/pc}
    </ul>
     {pc:link  action="type_list" siteid="$siteid" order="listorder DESC" num="10" return="dat"}
     <div class="bk10"></div>
	<div class="linka">
		{loop $dat $v}
              {if $type==0}
              <a href="{$v[url]}" target="_blank">{$v[name]}</a> |
              {else}
              <a href="{$v[url]}" target="_blank"><img src="{$v[logo]}" width="88" height="31" style="border: 1px solid #FFBE7A;"></a> 
              {/if}
		{/loop}
 	</div>
	{/pc}
</div>

</div>
<script type="text/javascript"> 

$(document).ready(function(){
	
repl();/*交换部门和文章信息位置*/


});

/*
 * @description 交换部门和标题
 */
function repl(){	
	$('.lll').each(function() {

$(this).find('a:last-child').insertBefore($(this).find('a:first-child'));

});
}



//当浏览器窗口大小改变时，刷新
window.onresize = function() {
	//window.location.reload();
	resizeM();
}


/**
 * @description 调整窗口大小
 */
function resizeM() {

	//layout宽度变化
    var w=$(window).width();
    
    $("#layout-main").width(w*0.9);
	$('#layout-main').layout('resize');
	
	//更改滚动图片宽度
	$("#ISL_Cont_1").width(w*0.9)-200;

    
  

}
scrollP();
/**
 * @description ❀图片显示
 */
function scrollP(){
	
	/*图片滚动*/
		var w=$(window).width()-200;
		var scrollPic_02 = new ScrollPic();
		scrollPic_02.scrollContId   = "ISL_Cont_1"; //内容容器ID
		scrollPic_02.arrLeftId      = "LeftArr";//左箭头ID
		scrollPic_02.arrRightId     = "RightArr"; //右箭头ID

		scrollPic_02.frameWidth     = w;//显示框宽度
		scrollPic_02.pageWidth      = 152; //翻页宽度

		scrollPic_02.speed          = 10; //移动速度(单位毫秒，越小越快)
		scrollPic_02.space          = 10; //每次移动像素(单位px，越大越快)
		scrollPic_02.autoPlay       = true; //自动播放
		scrollPic_02.autoPlayTime   = 3; //自动播放间隔时间(秒)

		scrollPic_02.initialize(); //初始化
							
}

		

/*
 * @description 显示当天食谱
 */	
function showfood(d){


	 {pc:content  action="lists" catid="64" order="id DESC" num="9" moreinfo="1"}  
	 
		  {loop $data $key $val} 
		
		  if({strtotime($val['datee'])}==d){
      
			$("#main").html("{str_replace(array("\r\n", "\r", "\n"), "", $val['mainfood'])} ");
		
			$("#sfood").html("{str_replace(array("\r\n", "\r", "\n"), "", $val['sfood'])} ");
			$("#nfood").html("{str_replace(array("\r\n", "\r", "\n"), "", $val['zhuyi'])} ");
			
			$('#months').splitbutton({text:"{date('m月d日',strtotime($val['datee']))}（ {format::week(strtotime($val['datee']))}）"}); 
	        $('#link').attr("href","{$val['url']}");
			resizeM();
			
	}


		  
		  
		 
       {/loop}


{/pc}  
	

}


/*
 * @description 显示当天食谱
 */	
function show(){   
    $("#loading").fadeOut("normal", function(){   
        $(this).remove();   
    });   
}       
var delayTime;   
$.parser.onComplete = function(){   
    if(delayTime)    
        clearTimeout(delayTime);   
        delayTime = setTimeout(show,500);   
    }
  /*遮罩--end*/

</script>

{template "content","footer"}